//交货方式
export const shippingTypeList = [
  { key: "送到", name: "送到" },
  { key: "自提", name: "自提" }
];

//结算方式
export const paymentCodeList = [
  { key: "现汇", name: "现汇" },
  { key: "承兑", name: "承兑" }
];

//价格类型
export const priceList = [
  { key: "紧俏", name: "紧俏" },
  { key: "平稳", name: "平稳" },
  { key: "滞销", name: "滞销" }
];

//发货紧急程充
export const urgentTypeList = [
  {
    cddId: 140,
    cddValue: "必须",
    status: 1,
    sortIndex: 100
  },
  {
    cddId: 141,
    cddValue: "可延1-2天",
    status: 1,
    sortIndex: 100
  },
  {
    cddId: 142,
    cddValue: "可延1-2周",
    status: 1,
    sortIndex: 100
  },
  {
    cddId: 143,
    cddValue: "等客户通知",
    status: 1,
    sortIndex: 100
  }
];

//交易摘要
export const createAbstractList = [
  { value: "现金款到发货，货款自合同签订日起两个工作日内付清。" },
  { value: "现金款到发货，货款自合同签订日起当日付清。" },
  { value: "6个月内可转让电子银行承兑，货款自合同签订日起两个工作日内付清。" },
  { value: "6个月内可转让电子银行承兑，货款自合同签订日起当日付清。" },
  {
    value:
      "预付定金XX元， 余款在xxxx（日期）前付清，若在此日期前卸货，则余款应于卸货前付清。"
  },
  {
    value:
      "货到付款，货款在xxxx（日期）前付清，若在此日期前卸货，则余款应于卸货前付清。"
  },
  {
    value:
      "货到票到付款，货款在xxxx（日期）前付清，若在此日期前卸货，则余款应于卸货前付清。"
  },
  {
    value:
      "需方向锡商银行贷款XXX元，货款期限为XX天，贷款年利率7.5%, 款到发货。货款自合同签订日起当日付清。"
  }
];

//运费方式
export const shippingTypeList2 = [
  { key: "buyer_shipping", name: "自提" },
  { key: "logistics_shipping", name: "需方承担运输费用" },
  { key: "free_shipping", name: "供方承担运输费用（免运费）" }
];

//发货方式
export const deliveryTypeList = ["公司发货", "采购发货", "客户自提"];

//生产日期
export const productionDateList = [
  { key: "一个月以内", name: "一个月以内" },
  { key: "三个月以内", name: "三个月以内" },
  { key: "半年以内", name: "半年以内" },
  { key: "一年以内", name: "一年以内" },
  { key: "一年以上", name: "一年以上" }
];

//真空率
export const packingRequireList = [
  { key: "27%以上", name: "27%以上" },
  { key: "36%以上", name: "36%以上" },
  { key: "60%以上", name: "60%以上" },
  { key: "72%以上", name: "72%以上" },
  { key: "80%以上", name: "80%以上" }
];

//备注
export const orderRemarkList = [
  { value: "半光高速纺只能工厂直发" },
  { value: "地毯类客户真空率需达到95%以上" },
  { value: "阳煤真空率根据厂里情况而定" },
  { value: "对接产品，销售的时候实单实谈" }
];

//取消备注
export const cancelRemarkList = [
  "客户降价违约",
  "其他情况",
  "供应商违约",
  "我司原因"
];
export const userRoleInfo = {
  isEnableBackend: 1,
  permissions: [
    "index",
    "roles",
    "addRole",
    "editRole",
    "deleteRole",
    "staffs",
    "addDept",
    "editDept",
    "deleteDept",
    "addStaff",
    "editStaff",
    "quitStaff",
    "setting",
    "settingByAdd",
    "customers",
    "customerByGHC",
    "customerMove",
    "customerByDept",
    "customerByAll",
    "customerDel",
    "sales",
    "sale",
    "saleContractDetails",
    "saleDeliverDetails",
    "purchases",
    "purchase",
    "purchaseContractDetails",
    "delivers",
    "deliver",
    "deliverDetails",
    "accountings",
    "accounting",
    "receiptList",
    "deliverDetailsReport",
    "freightSettlement",
    "report",
    "invoiceList",
    "driverList",
    "dischargingGoods",
    "purchaseContract",
    "goodsAnalysis",
    "supplier",
    "allSupplier",
    "supplierContact",
    "allSupplierContact",
    "supplierMaterials",
    "allSupplierMaterials",
    "supplierInquiry",
    "allSupplierInquiry",
    "inquiryReport",
    "unOrdercustomer",
    "saleDeliver",
    "contractSearch",
    "consultationList",
    "files",
    "allProductLine",
    "inWarehouse",
    "otherInWarehouse",
    "deliverFreightSettlement",
    "contractDetailed",
    "customerCheck",
    "purchaseTracking",
    "purchaseApplyPay",
    "purchaseOrderPayCheck",
    "inventoryQuery",
    "saleImplement",
    "AllPurchaseContract",
    "workPlanSet",
    "workPlan",
    "specialOrder",
    "saleExport",
    "saleContractDetailsExport",
    "saleDeliverDetailsExport",
    "saleImplementExport",
    "purchaseContractDetailsExport",
    "AllPurchaseContractExport",
    "contractDetailedExport",
    "purchaseTrackingExport",
    "deliverExport",
    "deliverDetailsExport",
    "inWarehouseExport",
    "accountingExport",
    "accountingBatchDownLoad",
    "deliverDetailsReportExport",
    "freightSettlementExport",
    "invoiceListExport",
    "consultationListExport",
    "purchaseScheduling",
    "logList",
    "purchaseDeliverDetails",
    "relationCustomer",
    "exportRelationCustomer",
    "allSale",
    "monthAnalysis",
    "dischargeGoods",
    "allPurchaseApplyPay",
    "purchasePickUp",
    "purchaseAccounting",
    "customersAnalysis",
    "purchaseDeliverDetailsExport",
    "purchaseList",
    "recommender",
    "allSaleContract",
    "exportSaleContract",
    "saleContract",
    "unOrderSolutions",
    "inventoryQueryReport",
    "customerAnalysisReport",
    "customerByAllExport",
    "inventoryWarning",
    "exportInventoryQueryReport",
    "deliverOrderList",
    "exportPurchaseList",
    "buyFrequency",
    "buyFrequencyReport",
    "pickUpList",
    "allPickUpList",
    "exportAllSaleDeliver",
    "productLineBatchUpdate",
    "otherOrderListExport",
    "kpiExport",
    "changeRealPrice",
    "changeFreightType",
    "allSaleDeliver",
    "quotationsAnalysis",
    "trackingExport",
    "exportPurchaseReceipt",
    "purchaseReceipt",
    "voteList",
    "votingTemplate",
    "saleInvoice",
    "exportSaleInvoice",
    "allSaleInvoice",
    "goodsClassProfitSet",
    "downLoadPurchaseContract",
    "integral",
    "integralCheck",
    "integralImport",
    "integralExport",
    "querySaleGoodsStock",
    "confirmationLetter",
    "yunLinkCustomerConfirm",
    "yunLinkOrderConfirm",
    "searchStock",
    "purchaseKPI",
    "inquiry",
    "inquiryList",
    "inquirySetting",
    "inquiryExport",
    "inquiryGoodsSourceList",
    "inquiryStatistics",
    "inquiryPumsList",
    "statisticsCustomer",
    "profitRanking",
    "buyNumber",
    "productLibrary",
    "logistics",
    "checkFreight",
    "checkRecord",
    "sourceList",
    "ymmOrderList",
    "customerByImport",
    "settingByEdit",
    "purchaseContractProfitExport",
    "capitalCost",
    "costDetails",
    "purchaseOEM",
    "changeOrderDetailRemark",
    "changePurchaseDetailRemark",
    "purchaseSchedulingNew",
    "changeOrderIsEntrust",
    "dischargingGoods2",
    "productClassification",
    "personnel",
    "employeeList",
    "employeeFiles",
    "rewardsPunishmentsRecords",
    "contractRecords",
    "communicationRecords",
    "trainingRecords",
    "changePurchaseOrderIsEntrust",
    "inputOrderCancelReason",
    "departmentPL",
    "exportAllCustomer",
    "exportAllGoodsLine",
    "resourcesDel",
    "moveGoodsLine",
    "saleDayStock",
    "saleDayStockSetting",
    "targetAdministration",
    "allSaleDayStockSetting",
    "legionTrialList",
    "allTrialList",
    "afterSales",
    "allAfterSales",
    "departmentAfterSales",
    "exportAfterSales",
    "goodsLineExamine",
    "purchaseTarget",
    "monthTarget",
    "chargePerson",
    "allGoodsLineTarget",
    "allPurchaseTarget",
    "customerLndustry",
    "goodsSetting",
    "productLabel",
    "customersPL",
    "allCustomersPL",
    "resourcesPL",
    "trialList",
    "followList",
    "confirmationLetterNew",
    "confirmationLetterNewAll",
    "customerByGHCExport",
    "customerByGHCDel",
    "customerByGHCMove",
    "developmentProgress",
    "customerAnalysis",
    "allCustomerGoodsLineAnalysis",
    "saleRanking",
    "exportfollow",
    "hideAddress",
    "messageSetting",
    "financeReport",
    "moveExamine",
    "goodsLineDetail",
    "saleContractDetailStatistics",
    "warehousePriceReport",
    "printModification",
    "stockChange",
    "allSaleContractDetailStatistics",
    "departSaleContractDetailStatistics",
    "generateCapitalCost",
    "growthAnalysisAll",
    "growthAnalysisTeam",
    "growthAnalysis",
    "benchmark",
    "monthTargetSaleTeam",
    "monthTargetSaleAll",
    "monthTargetSale",
    "additional",
    "purchaseDetailReport",
    "saleDetailReport",
    "saleProfitReport",
    "customerInvoice",
    "checkInvoiceQuery",
    "contractNumReport",
    "saleInquiry",
    "resourcesPL2",
    "onePrice",
    "lockGoods",
    "paymentApproval",
    "approvalSetting",
    "purchaseOffer",
    "profitReport",
    "carrierList",
    "financeSeeTx",
    "financeSeeRc",
    "deliversSeeTx",
    "deliversSeeRc",
    "seeRc",
    "seeTx"
  ],
  subscriberInfo: {
    userId: 123,
    roles: "",
    companyId: 1,
    userType: null,
    moresuUserId: 0,
    gender: 2,
    mobile: "13915018783",
    apiToken: "c6625b2a19dc1f98cbf2c67830f8ed44",
    realName: "张璟",
    position: "管理员",
    roleId: 23,
    departmentId: 6,
    goodsLineIds: "",
    purchaseGoodsClasses: "",
    purchaseGoodsSn: "",
    isClosed: 0,
    status: 1,
    kingUserId: 0,
    sapUserId: 17,
    isDepartManage: 0,
    parentUserIds: "",
    departUserIds: null,
    relationUserIds: null,
    relationParentUserIds: null,
    isCanOuterVisit: 1,
    sortValue: 2,
    evaluateNoticeNum: 0,
    createdAt: "2020-02-21 13:45:03",
    updatedAt: "2023-03-25 10:23:43",
    jobNumber: 0,
    masterId: 0,
    wechatUserId: "z@@j",
    commissionType: "",
    isNeedEditPassword: 0,
    isMange: 0,
    roleName: "管理员"
  }
};
export const permissions = [
  {
    value: "sale",
    label: "销售",
    children: [
      {
        value: "inquiryPrice",
        label: "询价",
        children: [
          {
            value: "todayInquiryPrice",
            label: "今日询价"
          },
          {
            value: "myCreateInquiryPrice",
            label: "我创建的询价"
          },
          {
            value: "myChargeInquiryPrice",
            label: "我负责的询价"
          },
          {
            value: "allInquiryPrice",
            label: "全部询价"
          }
        ]
      },
      {
        value: "onePrice",
        label: "一口价"
      },
      {
        value: "lockGoods",
        label: "锁货",
        children: [
          {
            value: "myCreateLockGoods",
            label: "我创建的锁货"
          },
          {
            value: "myChargeLockGoods",
            label: "我负责的锁货"
          },
          {
            value: "allLockGoods",
            label: "全部锁货"
          }
        ]
      },
      {
        value: "orderList",
        label: "销售订单",
        children: [
          {
            value: "myCreateOrderList",
            label: "我创建的锁货"
          },
          {
            value: "myChargeOrderList",
            label: "我负责的锁货"
          },
          {
            value: "allOrderList",
            label: "全部锁货"
          },
          {
            value: "salesManagerAudit",
            label: "销售经理审核"
          }
        ]
      }
    ]
  },
  {
    value: "purchase",
    label: "采购",
    children: [
      {
        value: "purchaseOffer",
        label: "采购报价",
        children: [
          {
            value: "todayPurchaseOffer",
            label: "今日采购报价"
          },
          {
            value: "myChargePurchaseOffer",
            label: "我负责的采购报价"
          },
          {
            value: "allPurchaseOffer",
            label: "全部采购报价"
          },
          {
            value: "purchaseOfferGoods",
            label: "采购报价商品管理"
          }
        ]
      }
    ]
  },
  {
    value: "goods",
    label: "商品",
    children: [
      {
        value: "goodsInformation",
        label: "商品资料"
      },
      {
        value: "warehouse",
        label: "仓库管理"
      }
    ]
  },
  {
    value: "bms",
    label: "系统",
    children: [
      {
        value: "basicInfo",
        label: "基本信息"
      },
      {
        value: "staffs",
        label: "员工信息",
        children: [
          {
            value: "dimission",
            label: "离职列表"
          }
        ]
      },
      {
        value: "managementSetting",
        label: "角色权限"
      },
      {
        value: "subCorporationSetting",
        label: "子公司设置"
      },
      {
        value: "operationLog",
        label: "操作日志"
      }
    ]
  }
];
